# 指定缺省参数的默认值
def print_info(name, gender=True):
    """

    :param name:
    :param gender:
    :return:
    """
    gender_text = "男性"
    if not gender:
        gender_text = "女性"
    print("%s 是 %s" % (name, gender_text))


print_info("小明", False)

print_info("小王")
